<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Laboratorio</title>
</head>
<body>
<f:view>
<h:form id="revistaform">
<h:panelGrid columns="2" id="revistapanelgrid">
	<f:facet name="header"> 
		<h:outputText  value="NUEVA REVISTA"/> 
	</f:facet>	
	<h:outputLabel value="Titulo" for="revistainputtexttitulo" id="revistaoutputtexttitulo"/>
	<h:panelGrid id="revistapanelgridmensaje" columns="2">
			<h:inputText value="#{revistaBean.titulo}" required="true" id="revistainputtexttitulo"/>
			<h:messages id="revistamessages"/>
	</h:panelGrid>
	<h:outputLabel value="Numero" for="revistainputtextnumero" id="revistaoutputtextnumero"/>
	<h:inputText value="#{revistaBean.numero}" required="true" id="revistainputtextnumero"/>
	
	<h:outputLabel value="Editorial" for="revistaselectonelistboxeditorial" id="revistaoutputtexteditorial"/>
	
	<h:selectOneMenu value="#{revistaBean.editorialSelect}" id="revistaselectonelistboxeditorial" required="true">
		<f:selectItems value="#{revistaBean.listItemsCombo}" id="revistaselectitemseditorial" />
			<f:converter converterId="converterEditorial"/>
	</h:selectOneMenu>
	<h:commandButton value="Confirmar" actionListener="#{revistaBean.processAction}" type="submit" id="revistacommandbuttonconfirmar"/>
	<h:commandButton value="Volver" action="home" type="submit" id="revistacommandbuttonvolver" immediate="true"/>
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>